package androidx.annotation;
import java.lang.annotation.Annotation;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({java.lang.annotation.ElementType.METHOD})
@Retention(RetentionPolicy.SOURCE)
@Deprecated
public @interface InspectableProperty
{
String name() default "";
int attributeId() default 0;
boolean hasAttributeId() default true;
ValueType valueType() default ValueType.INFERRED;
EnumEntry[] enumMapping() default {};
FlagEntry[] flagMapping() default {};
public static enum ValueType
{
NONE,
INFERRED,
INT_ENUM,
INT_FLAG,
COLOR,
GRAVITY,
RESOURCE_ID;
private ValueType() {}
}
@Target({java.lang.annotation.ElementType.TYPE})
@Retention(RetentionPolicy.SOURCE)
public static @interface FlagEntry
{
String name();
int target();
int mask() default 0;
}
@Target({java.lang.annotation.ElementType.TYPE})
@Retention(RetentionPolicy.SOURCE)
public static @interface EnumEntry
{
String name();
int value();
}
}